import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;

import java.nio.ByteBuffer;

public class testBytebuf {
    public static void main(String[] args) {
        ByteBuf buffer = Unpooled.buffer();
        System.out.println(buffer.writerIndex());
        buffer.writeByte(10);
        System.out.println(buffer.writerIndex());
    }
}
